package com.stoken.service;

import java.util.List;

import com.stoken.domain.MemberRegisterInfo;
import com.stoken.web.control.vo.Message;
import com.symbio.service.impl.BaseService;

public interface MemberRegisterInfoService extends BaseService<MemberRegisterInfo, Long>{

	/**
	 * 查看parentUsername用户下的location节点是否合法
	 * @param parentUsername
	 * @param location
	 * @return
	 */
	public Message isLegalforRegister(String commendUsername,String parentUsername, int location);

	public MemberRegisterInfo findRegisterByParentUserName(String hql,String parentUsername);
	
	/**
	 * 通过用户名查找自己
	 * @param activeName
	 * @return 
	 */
	public MemberRegisterInfo findRegisterByUserName(String activeName);

	
	/**
	 * 查询推荐人员
	 * @param baseUsername
	 * @return
	 */
	public List<MemberRegisterInfo> findRegisterByCommendUsername(String commendUsername,int pageNo);

	
	/**
	 * 查询下面的部门
	 * @param baseUsername
	 * @return 
	 */
	public List<MemberRegisterInfo> findRegByPUsername(String baseUsername);
	
	public Boolean isSystemAccount(String account);

    
}
